package com.luckyframe.project.jmeter.jmeterTestPlanMetric.domain;

import com.luckyframe.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 指标监控表 jmeter_test_plan_metric
 * 
 * @author lancelot
 * @date 2020-11-09
 */
public class JmeterTestPlanMetric extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Long id;
	/** 批次号 */
	private String sn;
	/** 测试计划ID */
	private Long planId;
	/** 计划名称 */
	private String planName;
	/** 开始时间 */
	private Date startTime;
	/** 结束时间 */
	private Date endTime;
	/** 执行状态0 未开始 1执行中 2执行成功 3执行失败 */
	private Integer status;
	/** 并发数 */
	private Double hits;
	/** TPS */
	private Double tps;
	/** 平均响应时间 */
	private Double avgRespTime;
	/** 错误率 */
	private Double errorRatio;
	/** 结果数据，json格式 */
	private String resultData;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 修改时间 */
	private Date updateTime;
	/** 备注 */
	private String remark;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setSn(String sn) 
	{
		this.sn = sn;
	}

	public String getSn() 
	{
		return sn;
	}
	public void setPlanId(Long planId) 
	{
		this.planId = planId;
	}

	public Long getPlanId() 
	{
		return planId;
	}
	public void setPlanName(String planName) 
	{
		this.planName = planName;
	}

	public String getPlanName() 
	{
		return planName;
	}
	public void setStartTime(Date startTime) 
	{
		this.startTime = startTime;
	}

	public Date getStartTime() 
	{
		return startTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setHits(Double hits) 
	{
		this.hits = hits;
	}

	public Double getHits() 
	{
		return hits;
	}
	public void setTps(Double tps) 
	{
		this.tps = tps;
	}

	public Double getTps() 
	{
		return tps;
	}
	public void setAvgRespTime(Double avgRespTime) 
	{
		this.avgRespTime = avgRespTime;
	}

	public Double getAvgRespTime() 
	{
		return avgRespTime;
	}
	public void setErrorRatio(Double errorRatio) 
	{
		this.errorRatio = errorRatio;
	}

	public Double getErrorRatio() 
	{
		return errorRatio;
	}
	public void setResultData(String resultData) 
	{
		this.resultData = resultData;
	}

	public String getResultData() 
	{
		return resultData;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("planId", getPlanId())
            .append("planName", getPlanName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("hits", getHits())
            .append("tps", getTps())
            .append("avgRespTime", getAvgRespTime())
            .append("errorRatio", getErrorRatio())
            .append("resultData", getResultData())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
